package moe.net.service.ui.impl;


import moe.net.service.ui.SeleniumKeyboardOperationService;
import org.openqa.selenium.WebElement;
import org.springframework.stereotype.Component;


@Component
public class SeleniumKeyboardOperationServiceImpl implements SeleniumKeyboardOperationService {
    @Override
    public void input(WebElement webElement, String... text) {
        webElement.sendKeys(text);
    }

    @Override
    public void clear(WebElement webElement) {
        webElement.clear();
    }

    @Override
    public void submit(WebElement webElement) {
        webElement.submit();
    }
}
